#ifndef CONNECT_WIFI_H
#define CONNECT_WIFI_H

#include "wifi_device.h"

#ifndef PARAM_HOTSPOT_SSID
#define PARAM_HOTSPOT_SSID "MEIZU_16s_Pro"   // your AP SSID  MEIZU_16s_Pro
#endif

#ifndef PARAM_HOTSPOT_PSK
#define PARAM_HOTSPOT_PSK  "1472580369"  // your AP PSK 12345678
#endif

#ifndef PARAM_HOTSPOT_TYPE
#define PARAM_HOTSPOT_TYPE WIFI_SEC_TYPE_PSK // defined in wifi_device_config.h
#endif

typedef struct 
{
    uint8_t last_wifi_connect_state;
    uint8_t wifi_connect_state;
    /* data */
}connect_wifi_data_t;



int connect_to_wifi(void); //WifiDeviceConfig* apConfig
void disconnect_With_wifi(void);

#endif //CONNECT_WIFI_H